from gameset.phoenicia.base import *

from ..agriculture import InediblePlant
from .water import Water
from .wood import Firewood


class TeaLeaves(InediblePlant):
    singular  =_ ('Tea Leave')
    plural    =_ ('Tea Leaves')
    price     =_ (1200)


class CoffeeBeans(InediblePlant):
    singular  =_ ('Coffee Bean')
    plural    =_ ('Coffee Beans')
    price     =_ (1400)


class Tea(Beverage):
    singular  =_ ('Tea')
    plural    =_ ('Tea')
    price     =_ (500)
    happiness =_ (1.0)
    consumed  =_ (1)


class Coffee(Beverage):
    singular  =_ ('Coffee')
    plural    =_ ('Coffee')
    price     =_ (800)
    happiness =_ (1.0)
    consumed  =_ (1)


class HotBrewery(Workshop):
    name     =_ ('Hot Brewery')
    color    =_ (Brown.dark)
    cost     =_ (200)
    staff    =_ (10)
    produces =_ (Production(input    = (TeaLeaves(1), Water(5), Firewood(8)),
                            output   = Tea(5),
                            duration = 0.5),
                 Production(input    = (CoffeeBeans(1), Water(5), Firewood(8)),
                            output   = Coffee(5),
                            duration = 0.5))
